package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Attendance;
import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.query.AttendanceQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttendanceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Attendance record);

    Attendance selectByPrimaryKey(Long id);

    List<Attendance> selectAll();

    int updateByPrimaryKey(Attendance record);


    int queryCount(AttendanceQueryObject qo);

    List<Attendance> queryList(AttendanceQueryObject qo);

    int updateTime(@Param("timeOut") String timeOut, @Param("state") Boolean state, @Param("id") Long id);

    Long selectIdByName(String employeeName);

    Attendance selectByUsername(String username);

    void destroy();
}
